package cn.wolfcode.crm.service.imp;

import cn.wolfcode.crm.domain.HangSaleBillItem;
import cn.wolfcode.crm.mapper.HangSaleBillItemMapper;
import cn.wolfcode.crm.service.IHangSaleBillItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HangSaleBillItemService implements IHangSaleBillItemService {

    @Autowired
    private HangSaleBillItemMapper hangSaleBillItemMapper;
    public int deleteByPrimaryKey(Long id) {
        return hangSaleBillItemMapper.deleteByPrimaryKey(id);
    }

    public int insert(cn.wolfcode.crm.domain.HangSaleBillItem record) {
        return hangSaleBillItemMapper.insert(record);
    }

    public HangSaleBillItem selectByPrimaryKey(Long id) {
        return hangSaleBillItemMapper.selectByPrimaryKey(id);
    }

    public List<HangSaleBillItem> selectAll() {
        return hangSaleBillItemMapper.selectAll();
    }

    public int updateByPrimaryKey(HangSaleBillItem record) {
        return hangSaleBillItemMapper.updateByPrimaryKey(record);
    }
}
